package net.niufei.encoder;

import net.niufei.Packet;
import net.niufei.PacketEncoder;
import net.niufei.Session;

public class SimplePacketEncoder implements PacketEncoder {

	@Override
	public Packet encode(Session session, Object obj) throws Exception {
		if(obj instanceof Packet) {
			return (Packet)obj;
		}
		return null;
	}

}
